7769111bdc30b84676c079711c6b5d35ce296ec4,src/main/java/helpertools/Common/Tools/ItemEuclideanTransposer.java,ItemEuclideanTransposer,onItemUse,#ItemStack#EntityPlayer#World#BlockPos#EnumHand#EnumFacing#number#number#number#,102

Before Change


    					if (!player.capabilities.isCreativeMode){
    						//player.inventory.consumeInventoryItem(Item.getItemFromBlock(returnTBlock(thestaff, Nbtcounter)));	
    						//stacky = new ItemStack (Item.getItemFromBlock(Blocks.DIRT), 0,0); 
    						InventoryUtil.consumeInventoryItemStack(stacky, player.inventory);
    						 thestaff.damageItem(1, player);
    					}
    					}

After Change


    					//stacky = new ItemStack (Item.getItemFromBlock(Blocks.DIRT), 0,0);
    					//if (player.capabilities.isCreativeMode|| player.inventory.hasItem(Item.getItemFromBlock(returnTBlock(thestaff, Nbtcounter)))
    					Boolean whitelist_flag;
    					whitelist_flag = Whitelist_Util.Block_Whitelist(returnTBlock_FromState(thestaff, Nbtcounter), player, returnTMeta(thestaff, Nbtcounter));
    					if (player.capabilities.isCreativeMode|| player.inventory.hasItemStack(stacky)
    							||whitelist_flag){
    					//theblock.playSoundEffect((double)((float)X_1  + 0.5F), (double)((float)Y_1  + 0.5F), (double)((float)Z_1  + 0.5F), returnTBlock(thestaff, Nbtcounter).stepSound.getStepResourcePath(), (returnTBlock(thestaff, Nbtcounter).stepSound.getVolume() + 1.0F) / 2.0F, returnTBlock(thestaff, Nbtcounter).stepSound.getPitch() * 0.8F);
    						/** plants reinbursement **/ /**Having to work around blocks like this isn't fun **/
    						if (world.getBlockState(pos2).getMaterial() == Material.VINE
    	    						|| world.getBlockState(pos2).getMaterial() == Material.PLANTS
    	    						|| world.getBlockState(pos2).getMaterial() == Material.SNOW) 
    						{
    							//world.getBlockState(pos2).getBlock().dropBlockAsItem(world,X_1 , Y_1 , Z_1 , (world.getBlockMetadata(pos2)), 0);
    							world.getBlockState(pos2).getBlock().dropBlockAsItem(world, pos2, world.getBlockState(pos2), 0);
    						}
    						//theblock.setBlock(X_1 , Y_1 , Z_1 , Blocks.DIRT);
    						
    					//world.setBlock(X_1 , Y_1 , Z_1 , returnTBlock_FromState(thestaff, Nbtcounter), (returnTMeta(thestaff, Nbtcounter)), 0);
    					world.setBlockState(pos2, BlockStateHelper.returnState(getTBlock(thestaff, Nbtcounter)), 02);
    					successful = 1;
    					short short1 = 32;
    					for (int lp = 0; lp < short1; ++lp)
    		            {
    		                double d6 = (double)lp / ((double)short1 - 1.0D);
    		                
    		                float f = (this.growrand.nextFloat() - .5F) * 1.4F;
    		                float f1 = (this.growrand .nextFloat() - .5F) * 1.4F;
    		                float f2 = (this.growrand .nextFloat() - .5F) * 1.4F;
    		                
    		                float p = (this.growrand.nextFloat()) ;
    		                float p1 = (this.growrand .nextFloat() ) ;
    		                float p2 = (this.growrand .nextFloat() ) ;
    		                world.spawnParticle(EnumParticleTypes.PORTAL, X_1 +p+.1, y1+.6+l+p1, Z_1 +p2+.1, f, f1, f2);
    		                //world.spawnParticle("portal", X_1 +p+.1, y1+.6+l+p1, Z_1 +p2+.1, f, f1, f2);
    		                
    		               
    		            }
    					
    					if (!player.capabilities.isCreativeMode){
    						//player.inventory.consumeInventoryItem(Item.getItemFromBlock(returnTBlock(thestaff, Nbtcounter)));	
    						//stacky = new ItemStack (Item.getItemFromBlock(Blocks.DIRT), 0,0); 
    						if(!whitelist_flag)InventoryUtil.consumeInventoryItemStack(stacky, player.inventory); 
    		    			if(whitelist_flag){
    		    				Whitelist_Util.Consume_Whitelist(stacky, player, returnTBlock_FromState(thestaff, Nbtcounter), returnTMeta(thestaff, Nbtcounter));
    		    				//player.inventory.consumeInventoryItem(item);
    		    				}
    						 thestaff.damageItem(1, player);